<template>
	<view class="">
		<view class="index-coupon">
			<scroll-view scroll-x="true" class="index-coupon-view">
				<slot></slot>
				<view class="index-coupon-msg" v-for="(item,inde ) in 30" :key="index">
					<view class="index-coupon-msg-wrap">
						<view class="index-coupon-msg-left">
							<view class="index-coupon-msg-left-up">500</view>
							<view class="index-coupon-msg-left-bom">满100可用</view>
						</view>
		
						<view class="index-coupon-msg-center">
							<view class="index-coupon-msg-center-up">这是票卷的名字</view>
							<view class="index-coupon-msg-center-bom">
								这是什么专用
							</view>
						</view>
						<view class="index-coupon-msg-bom">
							待开抢
						</view>
					</view>
		
				</view>
			</scroll-view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
	.index-coupon {
		.index-coupon-view {
			white-space: nowrap;
			width: 680rpx;
		}
	
		width: 100%;
		height: 200rpx;
	
		.index-coupon-msg {
	
			display: inline-block;
			// width: 80%;
			height: 180rpx;
			background: #D8D8D8;
			border-radius: 20rpx;
			opacity: 1;
			margin-right: 20px;
	
			.index-coupon-msg-wrap {
				display: flex;
				justify-content: space-between;
				align-items: center;
				height: 100%;
				width: 450rpx;
				padding: 0 22rpx;
	
				.index-coupon-msg-bom {
					width: 30rpx;
					font-size: 28rpx;
					color: $maincolor;
					writing-mode: vertical-lr;
					/*从左向右 从右向左是 writing-mode: vertical-rl;*/
					writing-mode: tb-lr;
					/*IE浏览器的从左向右 从右向左是 writing-mode: tb-rl；*/
				}
	
				.index-coupon-msg-center {
					.index-coupon-msg-center-up {
						font-size: 28rpx;
					}
	
					.index-coupon-msg-center-bom {
						font-size: 20rpx;
						background: #C1C1C1;
						border-radius: 100rpx;
						opacity: 1;
						text-align: center;
						margin-top: 20rpx;
						color: #fff;
					}
				}
	
				.index-coupon-msg-left {
					color: #ffffff;
	
					.index-coupon-msg-left-up {
						font-size: 44rpx;
					}
	
					.index-coupon-msg-left-bom {
						font-size: 20rpx;
					}
				}
			}
	
		}
	}
	
</style>